package com.ruoyi.employee.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 员工合同信息对象 contract
 * 
 * @author ruoyi
 * @date 2025-06-07
 */
public class Contract extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 合同ID，主键 */
    private Long id;

    /** 合同编号，唯一 */
    @Excel(name = "合同编号，唯一")
    private String contractNumber;

    /** 合同开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "合同开始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 合同结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "合同结束日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    /** 合同状态：生效中/已到期/已终止 */
    @Excel(name = "合同状态：生效中/已到期/已终止")
    private String status;

    /** 公司ID，关联公司表 */
    @Excel(name = "公司ID，关联公司表")
    private Long companyId;

    /** 合同有效期，如：3年 */
    @Excel(name = "合同有效期，如：3年")
    private String validityPeriod;

    /** 合同签订日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "合同签订日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date signingDate;

    /** 合同附录内容 */
    @Excel(name = "合同附录内容")
    private String appendix;

    /** 备注信息 */
    @Excel(name = "备注信息")
    private String remarks;

    /** 合同类别ID，关联合同类别表 */
    @Excel(name = "合同类别ID，关联合同类别表")
    private Long categoryId;

    /** 删除标志（0代表存在 2代表删除） */
    private Long delFlag;

    /** 记录创建时间 */
    private Date createdAt;

    /** 记录最后更新时间 */
    private Date updatedAt;
    /** 记录合同文件*/
    private String fileUrl;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setContractNumber(String contractNumber) 
    {
        this.contractNumber = contractNumber;
    }

    public String getContractNumber() 
    {
        return contractNumber;
    }

    public void setStartDate(Date startDate) 
    {
        this.startDate = startDate;
    }

    public Date getStartDate() 
    {
        return startDate;
    }

    public void setEndDate(Date endDate) 
    {
        this.endDate = endDate;
    }

    public Date getEndDate() 
    {
        return endDate;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setCompanyId(Long companyId) 
    {
        this.companyId = companyId;
    }

    public Long getCompanyId() 
    {
        return companyId;
    }

    public void setValidityPeriod(String validityPeriod) 
    {
        this.validityPeriod = validityPeriod;
    }

    public String getValidityPeriod() 
    {
        return validityPeriod;
    }

    public void setSigningDate(Date signingDate) 
    {
        this.signingDate = signingDate;
    }

    public Date getSigningDate() 
    {
        return signingDate;
    }

    public void setAppendix(String appendix) 
    {
        this.appendix = appendix;
    }

    public String getAppendix() 
    {
        return appendix;
    }

    public void setRemarks(String remarks) 
    {
        this.remarks = remarks;
    }

    public String getRemarks() 
    {
        return remarks;
    }

    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }

    public void setDelFlag(Long delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Long getDelFlag() 
    {
        return delFlag;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    public String getFileUrl() {
        return fileUrl;
    }

    public void setFileUrl(String fileUrl) {
        this.fileUrl = fileUrl;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("contractNumber", getContractNumber())
            .append("startDate", getStartDate())
            .append("endDate", getEndDate())
            .append("status", getStatus())
            .append("companyId", getCompanyId())
            .append("validityPeriod", getValidityPeriod())
            .append("signingDate", getSigningDate())
            .append("appendix", getAppendix())
            .append("remarks", getRemarks())
            .append("categoryId", getCategoryId())
            .append("delFlag", getDelFlag())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
